//
//  AboutUsView.m
//  LStyle
//
//  Created by Obaid Abdul Maroof on 12/2/09.
//  Copyright 2009 Vrije University. All rights reserved.
//

#import "AboutUsView.h"


@implementation AboutUsView

/*
 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
        // Custom initialization
    }
    return self;
}
*/


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
	self.createFooter;
	tcAbout = [[UITabBar alloc] initWithFrame:CGRectMake(0, 480-50, 320, 30)];
	
	[tcAbout addSubview:strComent];
	[tcAbout addSubview:strNum];
	[tcAbout addSubview:lblBack];
	[tcAbout addSubview:lblForward];
	
	[self.view addSubview:tcAbout];
//	txtMain.font = [UIFont fontWithName:@"Verdana" size: 10.0]; 
	
}

-(void) createFooter{
	UIFont *fnt = [UIFont fontWithName:@"Verdana" size: 10.0];
	strComent = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, 90, 20)];
	strNum = [[UILabel alloc] initWithFrame:CGRectMake(115, 5, 40, 20)];
	lblBack = [[UILabel alloc] initWithFrame:CGRectMake(170, 5, 60, 20)];
	lblForward = [[UILabel alloc] initWithFrame:CGRectMake(240, 5, 65, 20)];
	
	strComent.textAlignment = UITextAlignmentCenter;
	strNum.textAlignment = UITextAlignmentCenter;
	lblBack.textAlignment = UITextAlignmentCenter;
	lblForward.textAlignment = UITextAlignmentCenter;
	
	[strComent setBackgroundColor:[UIColor darkGrayColor]];
	[strNum setBackgroundColor:[UIColor clearColor]];
	[lblForward setBackgroundColor:[UIColor clearColor]];
	[lblBack setBackgroundColor:[UIColor clearColor]]; 
	
	strComent.text = @"What is LStyle?";
	strNum.text = @"Press";
	lblBack.text = @"Advertise";
	lblForward.text = @"Contact Us";
	
	strComent.font = fnt;
	strNum.font = fnt;
	lblForward.font = fnt;
	lblBack.font = fnt;
	
	strComent.textColor = [UIColor whiteColor];	
	strNum.textColor = [UIColor whiteColor];	
	lblBack.textColor = [UIColor whiteColor];		
	lblForward.textColor = [UIColor whiteColor];	
}



/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
		

}

- (void)viewWillAppear:(BOOL)animated
{
	self.navigationController.navigationBarHidden = YES;
	txtMain.scrollEnabled = YES;
}


- (void)dealloc {
    [super dealloc];
}

-(void)Back:(id)sender{
	[self.navigationController popViewControllerAnimated:YES];
}

@end
